<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>企业工单列表</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
	<script type="text/javascript">
	   function addOrder(){
	     var pid =$('option:selected').val();
	     window.location.href="addOrder.jsp?pid="+pid;
	   }
	</script>
  </head>
  
  <body>
    <table border="1" align="center">
    	<tr>
    		<td align="center" colspan="6"><h1>企业工单列表</h1></td>
    	</tr>
    	<tr style="background-color: gray;">
    		<td ><strong>工单编号</strong></td>
    		<td ><strong>项目名称</strong></td>
    		<td ><strong>执行人</strong></td>
    		<td ><strong>任务描述</strong></td>
    		<td ><strong>级别</strong></td>
    		<td ><strong>创建时间</strong></td>
    	</tr>
    	
  		<s:iterator value="orderList" status="s">
  	       
  	       <s:if test="#s.odd">
  	         <tr bgcolor="pink">
  	       </s:if>
  	       <s:if test="#s.even">
  	         <tr bgcolor="blue">
  	       </s:if>
  	       
	  	       <td>${id }</td>
	  	       <td>${project.projectName }</td>
	  	       <td>${executor }</td>
	  	       <td>${description }</td>
	  	       <td>${orderLevel }级</td>
	  	       <td>${createDate }</td>
  	         </tr>
  		</s:iterator>
  		
    </table>
    
  </body>
</html>

